DOCROOT/vendor/meilisearch/meilisearch-php/src/Http/Client.php [ 186 ]
181 }
182
183 if ($response->getStatusCode() >= 300) {
184 $body = $this->json->unserialize($response->getBody()->getContents()) ?? $response->getReasonPhrase();
185
186 throw new ApiException($response, $body);
187 }
188
189 return $this->json->unserialize($response->getBody()->getContents());
190 }
191
-
DOCROOT/vendor/meilisearch/meilisearch-php/src/Http/Client.php [ 157 ] » Meilisearch\Http\Client->parseResponse()
152 foreach ($this->headers as $header => $value) { 153 $request = $request->withAddedHeader($header, $value); 154 } 155 156 try { 157 return $this->parseResponse($this->http->sendRequest($request)); 158 } catch (NetworkExceptionInterface $e) { 159 throw new CommunicationException($e->getMessage(), $e->getCode(), $e); 160 } 161 } 162
-
DOCROOT/vendor/meilisearch/meilisearch-php/src/Http/Client.php [ 95 ] » Meilisearch\Http\Client->execute()
90 $request = $this->requestFactory->createRequest( 91 'POST', 92 $this->baseUrl.$path.$this->buildQueryString($query) 93 )->withBody($this->streamFactory->createStream($body)); 94 95 return $this->execute($request); 96 } 97 98 public function put(string $path, $body = null, array $query = [], ?string $contentType = null) 99 { 100 if (!\is_null($contentType)) {
-
DOCROOT/vendor/meilisearch/meilisearch-php/src/Endpoints/Indexes.php [ 207 ] » Meilisearch\Http\Client->post()
202 $parameters = array_merge( 203 ['q' => $query], 204 $searchParams 205 ); 206 207 $result = $this->http->post(self::PATH.'/'.$this->uid.'/search', $parameters); 208 209 // patch to prevent breaking in laravel/scout getTotalCount method, 210 // affects only Meilisearch >= v0.28.0. 211 if (isset($result['estimatedTotalHits'])) { 212 $result['nbHits'] = $result['estimatedTotalHits'];
-
DOCROOT/vendor/meilisearch/meilisearch-php/src/Endpoints/Indexes.php [ 188 ] » Meilisearch\Endpoints\Indexes->rawSearch()
183 * 184 * @phpstan-return ($options is array{raw: true|non-falsy-string|positive-int} ? array : SearchResult) 185 */ 186 public function search(?string $query, array $searchParams = [], array $options = []) 187 { 188 $result = $this->rawSearch($query, $searchParams); 189 190 if (\array_key_exists('raw', $options) && $options['raw']) { 191 return $result; 192 } 193
-
APPPATH/classes/Model/Meili/Documents.php [ 62 ] » Meilisearch\Endpoints\Indexes->search()
57 unset($filters['facetsDistribution']); 58 } 59 60 unset($filters['matches']); 61 62 $search = $index->search($query, $filters); 63 64 $response = $search->toArray(); 65 66 if ($should_format) 67 {
-
APPPATH/classes/Controller/Products.php [ 255 ] » Model_Meili_Documents->fetch()
250 $max = $limit * $current; 251 252 // s($data); 253 // die(); 254 255 $response = Model::factory('Meili_Documents')->fetch($data); 256 257 if (isset($this->get['debug'])) { 258 s($data, $response); 259 } 260
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Products->action_index()
79 [':uri' => $this->request->uri()] 80 )->request($this->request); 81 } 82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 94 ] » ReflectionMethod->invoke()
89 90 // Create a new instance of the controller 91 $controller = $class->newInstance($request, $response); 92 93 // Run the controller's execute() method 94 $response = $class->getMethod('execute')->invoke($controller); 95 96 if ( ! $response instanceof Response) 97 { 98 // Controller failed to return a Response. 99 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request()
109 $orig_response = $response = Response::factory(['_protocol' => $request->protocol()]); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 1000 ] » Kohana_Request_Client->execute()
995 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', [ 996 ':uri' => $this->_uri, 997 ]); 998 } 999 1000 return $this->_client->execute($this); 1001 } 1002 1003 /** 1004 * Returns whether this request is the initial request Kohana received. 1005 * Can be used to test for sub requests.
-
DOCROOT/public/index.php [ 118 ] » Kohana_Request->execute()
113 /** 114 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 115 * If no source is specified, the URI will be automatically detected. 116 */ 117 echo Request::factory(TRUE, [], FALSE) 118 ->execute() 119 ->send_headers(TRUE) 120 ->body(); 121 }